<%-- 
    Document   : b1
    Created on : 2014/8/12, 上午 09:21:33
    Author     : Benny
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>B1</title>
    </head>
    <body>
        <h1>b1</h1>
        <hr>
        <%= session.getId() %><br>
        <a href="b2.jsp;jsessionid=<%= session.getId() %>">B2連結一</a><br>
        <form action="b2.jsp;jsessionid=<%= session.getId() %>">
            <input type="text" name="user">
            <input type="submit">
        </form>
        <%= session.getAttribute("user") %>
        <br>
        <a href="<%= response.encodeURL("b2.jsp") %>">B2連結二</a><br>
        <form action="b3.jsp;jsessionid=<%= session.getId() %>">
            <input type="text" name="user">
            <input type="text" name="pname">
            <input type="submit">
        </form>
    </body>
</html>
